package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.Set;

public interface PermissionDao {

    public Set<Permission> findById(Integer id);
    //分页
    public Page<Permission> findAll(String queryString);
    //新增
    public void add(Permission permission);
    //编辑
    public void edit(Permission permission);
    //用户回显
    public Permission findByIdWithPermission(Integer id);
    //删除
    public void delete(Integer id);

}
